package com.ctbu.yyx.cameracontrol.repository;

import com.ctbu.yyx.cameracontrol.domain.Camera;
import com.ctbu.yyx.cameracontrol.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CameraRepository extends JpaRepository<Camera,Integer> {

    /**
     * 按ip查询
     * @param ip
     * @return
     */
    List<Camera> findByIp(String ip);
}
